package com.fancy.controller;

import com.fancy.pojo.category.Language;
import com.fancy.service.LanguageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/language")
public class LanguageController {
    @Autowired
    LanguageService languageService;

    @RequestMapping("/selectAll")
    public List<Language> selectAllLanguage(){
        return languageService.selectAllLanguage();
    }
}
